package com.model.dome1;

import java.time.Duration;
import java.time.LocalDateTime;
import java.time.Period;

public class Bir {
    public static void main(String[] args) {
        LocalDateTime localDateTime1 = LocalDateTime.of(1998,11, 7, 0, 0);
        LocalDateTime localDateTime2 = LocalDateTime.of(2020, 10, 28, 20, 40, 0);

        Duration duration = Duration.between(localDateTime1, localDateTime2);

//        System.out.println(22*365);

        long a=(duration.toMillis())/1000/60/60/24;

        System.out.println(a);

    }
}
